package com.zsc.wxm.ysh.anjo.service.base.model.resources.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 描述：
 *
 * @author playmaker
 * @since 2021/2/12 23:10
 */
@Data
@NoArgsConstructor
public class BaseDataDTO implements Serializable {

    private static final long serialVersionUID = 5495572436560164921L;

    private Long id;

    @ApiModelProperty("类型")
    @NotBlank(message = "类型不能为空")
    private String type;

    @ApiModelProperty("描述")
    @NotBlank(message = "描述不能为空")
    private String keyDesc;

    @ApiModelProperty("值")
    @NotNull(message = "描述不能为空")
    private Integer value;

    @ApiModelProperty("排序字段")
    @NotNull(message = "排序字段不能为空")
    private Integer sort;

}
